import type { AddressItem, PatientInfo } from "./patient-info";

export function getPatientInfo(): Promise<PatientInfo>{
    return new Promise(function(resolve, reject){
        setTimeout(() => {
            resolve({
                name: '法外狂徒',
                provinceCode: 'A',
                cityCode: 'A001'
            } as PatientInfo)
        }, 1000);
    })
}

export function getProvinceList(): Promise<AddressItem[]>{
    return new Promise(function(resolve, reject){
        setTimeout(() => {
            resolve([{
                code: 'A',
                name: '辽宁'
              },{
                code: 'B',
                name: '上海'
              },{
                code: 'C',
                name: '重庆'
              }])
        }, 3000);
    })
}